package com.example.tse.rbhttpservice.service.moments.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.moments.model.MomentsActivityGetList;
/**
 * 在首页点击活动进入，显示活动列表，包含字段活动标题（话题＋标题），活动介绍等
 * @author wliu
 * edit tse
 */
public class MomentsActivityGetListResponse extends RudderResponse{
    
    private List<MomentsActivityGetList> getList = new ArrayList<MomentsActivityGetList>();
		
	
    /**
     * @return getList
     */	
    public List<MomentsActivityGetList> getGetList() { 
	    return this.getList;
    };
	
	/**
     * @return getList
     */	
    public void setGetList(List<MomentsActivityGetList> getList) { 
        this.getList = getList;
    };
    
	
        
    private static void filterFor(MomentsActivityGetListMoments moments) {
        if (moments.getMomentId() == null) {
            moments.setMomentId("");
        }
        if (moments.getMainPic() == null) {
            moments.setMainPic("");
        }
    }
        
    private static void filterFor(MomentsActivityGetList moments) {
        if (moments.getActivityId() == null) {
            moments.setActivityId("");
        }
        if (moments.getTitle() == null) {
            moments.setTitle("");
        }
        if (moments.getMainPic() == null) {
            moments.setMainPic("");
        }
        if (moments.getDesc() == null) {
            moments.setDesc("");
        }
        if (moments.getEndTime() == null) {
            moments.setEndTime("");
        }
        if (moments.getIsJoined() == null) {
            moments.setIsJoined("");
        }
        if (moments.getMoments() == null) {
            moments.setMoments(new ArrayList<MomentsActivityGetListMoments>());
        } else {
            for (MomentsActivityGetListMoments item : moments.getMoments()) {
                filterFor(item);
            }
        }
    }
        
    public static void filter(MomentsActivityGetListResponse moments) {
        if (moments.getGetList() == null) {
            moments.setGetList(new ArrayList<MomentsActivityGetList>());
        } else {
            for (MomentsActivityGetList item : moments.getGetList()) {
                filterFor(item);
            }
        }
    }
}
